Part Torus |
Menu location |
---|
Part → Primitives → Torus |
Workbenches |
Part |
Default shortcut |
None |
Introduced in version |
- |
See also |
Part Primitives |
根据position, angle1, angle2, angle3, radius1 与 radius2参数创建一个简单的参数化环面。
A Part Torus can be turned into a segment of a torus by changing its 数据Angle3 property. By changing its 数据Angle1 and/or 数据Angle2 properties the swept profile can become a segment of a circle.
在零件工作台中点击环面图标。这会在原点(point 0,0,0)处创建一个环面。 三个角度参数(angle1, angle2, angle3)与两个半径参数(radius1 , radius2)用于确定参数化环面,详情请看下段文字。
A Part Torus object created with the scripting example below is shown here.
See also: Property editor.
A Part Torus object is derived from a Part Feature object and inherits all its properties. It also has the following additional properties:
Attachment
The object has the same attachment properties as a Part Part2DObject.
Torus
See also: Autogenerated API documentation, Part scripting and FreeCAD Scripting Basics.
A Part Torus can be created with the addObject()
method of the document:
torus = FreeCAD.ActiveDocument.addObject("Part::Torus", "myTorus")
"myTorus"
is the name for the object.Example:
import FreeCAD as App
doc = App.activeDocument()
torus = doc.addObject("Part::Torus", "myTorus")
torus.Radius1 = 20
torus.Radius2 = 10
torus.Angle1 = -90
torus.Angle2 = 45
torus.Angle3 = 270
torus.Placement = App.Placement(App.Vector(1, 2, 3), App.Rotation(30, 45, 10))
doc.recompute()